<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Card extends Model
{
    protected $table = 'v_cards';

    /**
     * 不可批量赋值的属性
     * @var array
     */
    protected $guarded = ['id'];

    //油卡状态
    const CARD_STATUS_ENABLED = 10; //可分配的
    const CARD_STATUS_DISABLED = 20; //不可分配的 使用中
    const CARD_STATUS_LOSE = 30; //已丢失

    public static $cardStatus = [
        self::CARD_STATUS_ENABLED  => '空闲',
        self::CARD_STATUS_DISABLED => '使用中',
        self::CARD_STATUS_LOSE     => '已丢失',
    ];
}
